<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Resident extends Model
{
    protected $table = 'resident';
    protected $dateFormat = 'Y-m-d H:i:s';
    public function userinfo(){
        return $this->belongsTo('App\Model\Users','user_id','id');
    }
    public function cominfo(){
        return $this->belongsTo('App\Model\Company','com_id','id');
    }
}
